<template>
	<view>
		<view class="" style="height: 100%;position: relative;">
			
			<view class="" v-if="list.length==0" style="position: absolute;margin: auto;top:300rpx;left: 0;right: 0;width: 300rpx;text-align: center;">
				<image  src="../../static/image/nodata1.png" mode="" style="width: 300rpx;height: 200rpx;"></image>
				暂无数据
			</view>
			
			<view class="" style="padding-top: 20rpx;" v-for="(item,index) in list" :key="item.id" >
				<view class="oneTui uni-flex">
					<view class="" style="position: relative;margin-right: 20rpx;">
						<view class="touxiang">
							<image :src="$jiekou.uploadBaseUrl+item.head" mode="" class=""></image>
						</view>
						<!-- <view :class="[item.Status=='Online'?'zaixian':'','yuandian']"></view> -->
					</view>
					<view class="neirong">
						<view class="uni-flex">
							<view class="" style="flex: 1;">
								<text class="user-name">{{item.username}}</text>
								<image v-if="item.attestation==2" src="../../static/image/yirenzheng.png" mode="" class="renzhengtu"></image>
							</view>
							<!-- <view class="pingding">综合评定:{{zonghepingfen[item.pingfen]}}</view> -->
						</view>
						<view class="biaoqians uni-flex" style="margin-top: 5rpx;">
							<view class="biaoqian">{{maijiashangjia[item.type]}}ID：{{item.id}}</view>
							<view v-if="item.tuanduiid!=undefined && item.tuanduiid!=''" class="biaoqian">团队ID：{{item.tuanduiid}}</view>
						</view>
					</view>
				</view>
			</view>
			<!-- <view class="" style="padding-top: 20rpx;">
				<view class="oneTui uni-flex">
					<view class="touxiang">
						<image src="../../static/image/touxaing.png" mode="" class=""></image>
					</view>
					<view class="neirong">
						<view class="uni-flex">
							<text class="user-name">鱼汤没有鱼</text>
							<image src="../../static/image/yirenzheng.png" mode="" class="renzhengtu"></image>
						</view>
						<view class="biaoqians uni-flex">
							<view class="biaoqian">商家ID：23452</view>
							<view class="biaoqian">团队ID：23452</view>
							<view class="biaoqian">买家</view>
						</view>
					</view>
				</view>
			</view> -->
			<!-- <view class="" style="padding-top: 20rpx;">
				<view class="oneTui uni-flex">
					<view class="touxiang" >
						<image src="../../static/image/shouchi.png" mode="" class=""></image>
					</view>
					<view class="neirong">
						<view class="uni-flex">
							<text class="user-name">鱼汤有鱼</text>
							<image src="../../static/image/yirenzheng.png" mode="" class="renzhengtu"></image>
						</view>
						<view class="biaoqians uni-flex">
							<view class="biaoqian">商家ID：23452</view>
							<view class="biaoqian">团队ID：23452</view>
							<view class="biaoqian">买家</view>
						</view>
					</view>
				</view>
			</view>
			<view class="" style="padding-top: 20rpx;">
				<view class="oneTui uni-flex">
					<view class="touxiang">
						<image src="../../static/image/yinhangka.png" mode="" class=""></image>
					</view>
					<view class="neirong">
						<view class="uni-flex">
							<text class="user-name">鱼有鱼</text>
							<image src="../../static/image/yirenzheng.png" mode="" class="renzhengtu"></image>
						</view>
						<view class="biaoqians uni-flex">
							<view class="biaoqian">商家ID：23452</view>
							<view class="biaoqian">团队ID：23452</view>
							<view class="biaoqian">买家</view>
						</view>
					</view>
				</view>
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				uid:uni.getStorageSync("token"),
				list:[],
				maijiashangjia:{1:"买家",2:"商家"}
			}
		},
		onLoad:function(){
			var that = this;
			that.$util.nuiAjax(that.$jiekou.selectUserByYaoqingUid, {
				uid: that.uid
			}, function(res) {
				if (res.result == "true") {
					console.log(res);
					that.list = res.data;
				}
			});
		},
		onPullDownRefresh() {
			var that = this;
			that.$util.nuiAjax(that.$jiekou.selectUserByYaoqingUid, {
				uid: that.uid
			}, function(res) {
				
				if (res.result == "true") {
					that.list = res.data;
					uni.stopPullDownRefresh();
				}
			});
		},
		methods: {
			
		}
	}
</script>

<style lang="scss">
	page{
		background-color: $page-bg-color;
		height: 100%;
	}
	.oneTui{
		padding: 30rpx 0 32rpx 30rpx;
		background-color: #FFFFFF;
		
	}
	.touxiang{
		width: 92rpx;
		height: 92rpx;
		border-radius:50rpx;overflow: hidden;
		margin-right: 16rpx;
	}
	.touxiang image{
		width: 100%;
		height: 100%;
	}
	.user-name{
		height:44rpx;
		font-size:32rpx;
		font-weight:500;
		color:rgba(25,25,25,1);
		line-height:44rpx;
		padding-right: 8rpx;
	}
	.renzhengtu{
		width: 26rpx;
		height: 32rpx;
		margin-top: 6rpx;
	}
	.biaoqian{
		height:34rpx;
		font-size:24rpx;
		font-weight:400;
		color:$uni-color-primary;
		line-height:34rpx;
		border: 1rpx solid $uni-color-primary;
		border-radius: 4rpx;
		padding: 2rpx 8rpx 0 8rpx;
		margin-right: 8rpx;
	}
	.neirong{
		margin-bottom: 10rpx;
	}
</style>
